package cn.ywrby.service.impl;

import cn.ywrby.domain.ApplyProcess;
import cn.ywrby.mapper.CommonMapper;
import cn.ywrby.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommonServiceImpl implements CommonService {

    @Autowired
    CommonMapper commonMapper;

    @Override
    public List<ApplyProcess> getAllApplyProcess() {
        List<ApplyProcess> applyProcessList=commonMapper.getAllApplyProcess();
        return applyProcessList;
    }

    @Override
    public List<ApplyProcess> getApplyProcess(String applyId) {
        List<ApplyProcess> applyProcessList=commonMapper.getApplyProcess(applyId);
        return applyProcessList;
    }

    @Override
    public void delApply(String applyId) {
        commonMapper.delApply(applyId);
    }

}
